dict_a = {"张三": 12345}
dict_b = {"李四": 12346}
dict_c = {"王五": 12347}
student1 = list(dict_a)+list(dict_a.values())+list(dict_c)+list(dict_c.values())
student2 = list(dict_b)+list(dict_b.values())
student = student1 + student2
for x in student:
    print(x)